package com.ht.medicaltreatment.activity

import android.view.View
import com.gym.baselib.base.BaseActivity
import com.ht.medicaltreatment.R
import com.xgst.lib.utils.TimeUtils
import kotlinx.android.synthetic.main.activity_sample_collection_layout.*

/**
 * 样本采集(患者采血)
 */
class CollectionBloodMainActivity:BaseActivity(), View.OnClickListener {
    override fun getLayoutId() = R.layout.activity_sample_collection_layout

    override fun init() {
        setTitle("样本采集")
        imgFormRecord.setOnClickListener(this)
        tvRecord.setOnClickListener(this)
        imgUserInfo.setOnClickListener(this)
        tvInfo.setOnClickListener(this)
        btnStart.setOnClickListener(this)
    }

    override fun onClick(v: View?) {
        when(v){
            //表单记录
            imgFormRecord,
            tvRecord -> {
                startActivity(FormRecordActivity::class.java)
            }

            //受试者信息
            imgUserInfo,
            tvInfo -> {
                startActivity(SubjectsInfoActivity::class.java)
            }

            //开始识别
            btnStart -> {
                startActivity(NFCActivity::class.java)
            }
        }
    }
}